#!/bin/sed -f
#
# This script will convert from osm-template.xml to osm-template-fontset.xml
#
# $ ./convert-fontset osm-template.xml > osm-template-fontset.xml
#
#

s/face_name="DejaVu Sans Bold"/fontset_name="bold-fonts"/
s/face_name="DejaVu Sans Book"/fontset_name="book-fonts"/
s/face_name="DejaVu Sans Oblique"/fontset_name="oblique-fonts"/

/<Style name="world">/ i \
    <FontSet name="book-fonts">\
          <Font face_name="DejaVu Sans Book" />\
          <Font face_name="unifont Medium" />\
    </FontSet>\
    <FontSet name="bold-fonts">\
          <Font face_name="DejaVu Sans Bold" />\
          <Font face_name="unifont Medium" />\
    </FontSet>\
    <FontSet name="oblique-fonts">\
          <Font face_name="DejaVu Sans Oblique" />\
          <Font face_name="unifont Medium" />\
    </FontSet>
